﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace ProjectCore.Domain.Model.Entity
{
    /// <summary>
    /// 评价
    /// </summary>
    public class Eval
    {
        [Key]
        public int EvalID { get; set; }     //评价主键
        public int ProID { get; set; }      //商品外键
        public int UserID { get; set; }     //用户外键
        public int Grade { get; set; }      //评分  
        [StringLength(200)]
        public string Info { get; set; }    //评价内容
        [StringLength(200)]
        public string Photo { get; set; }   //图片上传
        public DateTime CreateTime { get; set; }//评价时间
        public int State { get; set; }      //是否显示
        public int Sort { get; set; }       //顺序    
        public int DeleteMark { get; set; } //逻辑删除
        public string Spare { get; set; }   //备用
        [NotMapped]
        public bool IsDeleted { get; set; }
    }
}










